package com.guoxue.dao.impl;

import org.springframework.stereotype.Repository;

import com.guoxue.dao.ITapesShareDao;
import com.guoxue.domain.TapesShareVo;
@Repository
public class TapesShareDaoImpl extends BaseDaoImpl<TapesShareVo> implements ITapesShareDao{

	@Override
	public TapesShareVo getTapesShareByTid(int tid, int sysflag) {
		return get("FROM TapesShareVo t WHERE t.tapesId=? AND t.sysflag=?", new Object[] {tid,sysflag});
	}

	@Override
	public void saveTapesShare(TapesShareVo share) {
		saveOrUpdate(share);
	}

}
